package com.czb.controller;

import com.czb.service.IBikeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by BIN on 2018-05-31.
 */
@RestController
public class BikeController {
    @Autowired
    private IBikeService bikeService;

    @GetMapping("/show")
    public String rideBike(String name){
        return "fiegn " + bikeService.rideBike(name);
    }
}
